package com.carpedil.auth.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

/** @author Administrator */
@FeignClient("authServer")
public interface FeiginAuthenticService {
  @GetMapping("/auth/user/{username}/{password}")
  @ResponseBody
  public String authorize(
      @PathVariable("username") String username, @PathVariable("password") String password);

  @GetMapping("/auth/toLogin")
  public String toLogin();
}
